<?php
class  GraphicModel extends RelationModel{
	protected $_link=array(
			'article'=>array(
					'mapping_type'=>HAS_MANY,
					'class_name'=>'Article',
					'foreign_key'=>'graphic_id'	,
					'mapping_name'=>'articles',
					'mapping_fields'=>'id, author, img_id, summary, main_text, original_link, graphic_id, head_title, type, linkUrl',
			),
	);
}
?>